package com.jiyun.controller;

import com.jiyun.mapper.AddcpMapper;
import com.jiyun.service.AddcpService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("addcp")
@CrossOrigin
public class AddcpController {
    @Resource
    private AddcpService addcpService;

    @RequestMapping("list")
    public List<AddcpMapper> list(){
        return addcpService.list();
    }
}
